<?php
class logoutAction extends sfAction{
	public function execute($request){
		$this->getUser()->setAttribute('admin.accounts',null);
		$this->getUser()->setAttribute('admin.account_credentials',null);
		$this->redirect(sfConfig::get('app_prefix'). $this->generateUrl('login'));
		return sfView::NONE;
	}
}